package com.osdp.common.constant;

public class CommonConstant {
    /**
     * token信息
     */
    public static final String HEADER_ACCESS_TOKEN ="X-Access-Token";

    public static String FEIGN_INVOKER = "FEIGN_INVOKER";
    /**
     * 租户之上的超级管理员权限
     */
    public static String SUPER_TENANT_ADMIN ="ROLE_SUPER_ADMIN";


    /** 签名必须包含此内容 */
    public static final String JWT_SIGN_AUDIENCE="osdp";

    public static String PREFIX_USER_TOKEN = "PREFIX_USER_TOKEN_";

    /**
     * 用户中心微服务名字
     */
    public static final String UC_APP_NAME = "${micro.converge.feign.name:micro-uc}";
    public static final String UC_APP_PATH = "${micro.converge.feign.path:uc}";
    /**
     * 认证中心微服务名称
     */
    public static final String AUTH_APP_NAME = "${micro.converge.feign.name:micro-auth}";
    public static final String AUTH_APP_PATH = "${micro.converge.feign.path:auth}";

    public static String PREFIX_ROLE_CODE = "ROLE_";
    /**
     * 自己产生的token与oauthtoken的联系
     */
    public static String PREFIX_TOKEN_TO_OAUTH = "PREFIX_TOKEN_TO_OAUTH:";
    /**
     * 管理员-租户级别
     */
    public static String SUPER_ADMIN ="admin";
    /** 用户初始化密码 */
    public static final String INIT_PASSWORD = "123abcA!";
    /**
     * {@code 500 Server Error} (HTTP/1.0 - RFC 1945)
     */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /**
     * {@code 200 OK} (HTTP/1.0 - RFC 1945)
     */
    public static final Integer SC_OK_200 = 200;
    /**
     * 树节点的虚拟根节点
     */
    public static final String TREE_ROOT_VALUE = "-1";
    /**
     * 0 / false / 否 / 不正常
     */
    public static final String FLAG_ZERO_0 = "0";
    /**
     * 1  / true / 是 / 正常
     */
    public static final String FLAG_ONE_1 = "1";
    /**
     * 2 / 其他
     */
    public static final String FLAG_TWO_2 = "2";

    /**
     * 3 常量
     */
    public static final String FLAG_THREE_3 = "3";

}
